﻿<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    xmlns:msxsl="urn:schemas-microsoft-com:xslt" exclude-result-prefixes="msxsl"
>
    <xsl:output method="html" indent="yes"/>
  <xsl:param name="id" />

  <xsl:template match="@* | node()">
      <h2>Contact Us</h2>
      <p>Use this form to send us your comments.</p>
      <div id="contactform">
        <form method="post" action="contact.aspx" >
          <div class="line">
            <label for="yourName">Your Name:</label><input type="text" id="yourName" name="yourName" />
          </div>
          <div class="line">
            <label for="yourEmail">Your Email:</label><input type="text" id="yourEmail" name="yourEmail" />
          </div>
          <div class="line">
            <label for="message">Your Message:</label><textarea id="message" name="message" rows="5" cols="30"></textarea>
          </div>
          <div class="line">
            <input type="submit" id="send" value="Send Comment" />
          </div>
        </form>
        <xsl:if test="$id = 'sent'">
          <div id="result">Thank you! Your message has been sent.</div>
        </xsl:if>
      </div>
    </xsl:template>
</xsl:stylesheet>
